home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Context / GrafPortContext.h < prev   
Encoding:
Text File  |  1997-06-28  |  355 b   |  27 lines  |  [TEXT/CWIE]

  1. // GrafPortContext.h
  2.  
  3. #ifndef GrafPortContext_h
  4. #define GrafPortContext_h
  5.  
  6. #ifndef Context_h
  7. #include "Context.h"
  8. #endif
  9.  
  10. class GrafPortContext: public Context
  11.   {
  12.     private:
  13.         GrafPtr port;
  14.         
  15.     protected:
  16.         virtual void Enter();
  17.         virtual void Leave();
  18.         virtual void Check();
  19.     
  20.     public:
  21.         GrafPortContext( GrafPtr p )
  22.           : port( p )
  23.           {}
  24.   };
  25.  
  26. #endif
  27.